#ifndef TITLEBAR_H
#define TITLEBAR_H

#include <QWidget>

namespace Ui {
    class TitleBar;
}

class TitleBar : public QWidget {
    Q_OBJECT
public:
    TitleBar(QWidget *parent = 0);
    ~TitleBar();

    void showMinimize           (bool value);
    void showClose              (bool value);

signals:
    void minimize               ();
    void close                  ();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::TitleBar *ui;
};

#endif // TITLEBAR_H
